import request from '@/utils/request';

// 查询已经保存的解算信息
export function findPageRecipientListApi(params: any) {
  const { filterInfo, pageInfo } = params;
  return request('/bommgmt/commonEmailRecipient/findPageByCondition', {
    method: 'POST',
    data: {
      pageInfo,
      filterInfo: {
        ...filterInfo,
      },
    },
  });
}

//保存
export async function batchSaveApi(params: object) {
  return request(
    '/bommgmt/commonEmailRecipient/saveBatch',
    {
      method: 'POST',
      data: params,
    },
    {
      showSuccess: true,
      successMessage: '操作成功',
    },
  );
}
